/*
 * Flashlib - QB9 common Flash library
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.qb9.flashlib.input.mouse
{
	import flash.display.InteractiveObject;
	import flash.events.MouseEvent;

	/**
	 * Equals to MouseEvent but implements VirtualEvent. It is dispatched by VirtualMouses.
	 * 
	 * <p>To check whether an event was dispatched by a VirtualMouse, do this:</p>
	 * <pre>
	 * if (event is VirtualEvent)
	 * 	// The event was dispatched by a VirtualMouse
	 * </pre>
	 */

	public class VirtualMouseEvent extends MouseEvent implements VirtualEvent
	{
		public function VirtualMouseEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false, localX:Number=NaN, localY:Number=NaN, relatedObject:InteractiveObject=null, ctrlKey:Boolean=false, altKey:Boolean=false, shiftKey:Boolean=false, buttonDown:Boolean=false, delta:int=0)
		{
			super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
		}
		
	}
}